﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class01
{
    class emp
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string department { get; set; }
        public emp()
        {

        }

        public emp(int id, string name, string department)
        {
            this.Id = id;
            this.Name = name;
            this.department = department;
        }


        public void dy()
        {
            Console.WriteLine("我的工号是{0}，我的姓名是{1}，我的部门是{2}", this.Id, this.Name, this.department);
        }
    }
}